#ifndef __BSP_H
#define __BSP_H


#define ATH20_EN 0


#include "n32g45x.h"
#include "n32g45x_it.h"
#include "delay.h"
#include "fun.h"
#include "bsp_key.h"
#include "bsp_beep.h"
#include "bsp_timer.h"
#include "bsp_adc.h"
#include "bsp_i2c_gpio.h"

#if ATH20_EN 
#include "bsp_aht20.h"
#else
#include "bsp_sht4x.h"
#endif



#include "bsp_i2c_co.h"
#include "bsp_i2c_co2.h"

#include "bsp_mpm10.h"
#include "myrtc.h"
#include "n32g45x_rtc.h"
#include "bsp_tft_lcd.h"
#include "LCD_ST7789.h"
#include "bsp_power.h"
#include "bsp_timer_pwm.h"
#include "bsp_moto.h"
#include "bsp_myflash.h"
#include "bsp_usart.h"


#include "allbmp.h"
#include "allfont.h"


#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>

extern __IO uint16_t GusRunTime;
extern __IO uint8_t  GucPowerFlag;
extern __IO uint16_t GusInterFaceRunTime;
extern uint16_t GusRandAdc;				
extern uint8_t  GucAutoPowerFlag;
extern uint16_t GusRandAdc;					

extern uint8_t  GucPM10Dis;  
extern uint8_t GucTempFlagCF;
extern uint8_t GucAlarm_En;

extern uint8_t  GucFaultFlag;
extern SensorData_T SensorData_t;
extern BatParameter_T BatParameter_t;
extern SleepParameter_T SleepParameter_t;
extern LcdBrightParameter_T LcdBrightParameter_t;
extern DigitalFlickerParameter_T DigitalFlickerParameter_t;
extern ShutdownTimeParameter_T ShutdownTimeParameter_t;
extern BeepAlmParameter_T BeepAlmParameter_t;
extern RealarmTime_T RealarmTime_t;

#endif

